//------------------------------------------------------------------------------
#ifndef __CMYRADIOBUTTON_H__
#define __CMYRADIOBUTTON_H__
//------------------------------------------------------------------------------
#include <QtGui>
#include <QRadioButton>
#include <QString>
#include <QtDesigner/QDesignerExportWidget>
#include "CChamp.h"
//-----------------------------------------------------------------------------------
#ifndef DESIGNER_CONTROL
#define DESIGNER_EXPORT	QDESIGNER_WIDGET_EXPORT
#else
#define DESIGNER_EXPORT
#endif //DESIGNER_CONTROL
//------------------------------------------------------------------------------
class DESIGNER_EXPORT CMyRadioButton : public QRadioButton
{
	Q_OBJECT
#ifndef DESIGNER_CONTROL
	Q_PROPERTY(QString valueIfSelected READ getValueIfSelected WRITE setValueIfSelected)
#endif //DESIGNER_CONTROL
	public:
		CMyRadioButton(QWidget *parent = 0);
		QString getValueIfSelected(void) { return _valueIfSelected; }
		void setValueIfSelected(QString value) { _valueIfSelected=value; }
	private:
		QString _valueIfSelected;
};
//------------------------------------------------------------------------------
#endif //__CMYRADIOBUTTON_H__
//------------------------------------------------------------------------------